<%@ page language="java" pageEncoding="UTF-8" import="com.shenfa.bean.Person,com.shenfa.bean.Role,java.util.*"%>
<%
	Person person=(Person)request.getSession().getAttribute("login");	
	String rolename="";
	String username="";
	String orgname="";
	String depname="";
	if(null!=person){
		username = person.getName();
		orgname = person.getOrgName();
		depname = person.getDepName();
		List list=person.getRolelist();
		Role r=null;
		if(null!=list&&list.size()>0){
			for(int i=0;i<list.size();i++){
				r=(Role)list.get(i);
				rolename+=r.getName();
				if(i!=list.size()-1){
					rolename+=",";
				}
			}
		}
	}
%>
<div class="header">
	<img src="images/title.gif" />
	<div class="user_info">
		<label id="lable_username" class="title_lable">用户:<%=username%></label>
		<span class="spline">|</span>
		<label id="lable_rule"class="title_lable">角色:<%=rolename%></label>
		<span class="spline">|</span>
		<label id="lable_orgname" class="title_lable">机构:<%=orgname%></label>
		<span class="spline">|</span>
		<label id="lable_dername" class="title_lable">部门:<%=depname%></label>
		<span class="spline">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
		<a href="javascript:editpwd();" class="title_lable">密码修改</a>
		<span class="spline">|</span>
		<a href="javascript:logout();" class="title_lable">注销</a>
			<form id="logout_form" action="portal!logout.action" method="post">
			
		</form>
	</div>
</div>

